<extend name="Public/base"/>

<block name="style">
<link href="__CSS__/jtbk.css" rel="stylesheet" type="text/css"/>
</block>
<block name="content">   
    <ul class="nav nav-tabs">
     <li ><a href="{:U('Shiti/index')}">首页</a></li>
     <li ><a href="{:U('Shiti/add')}">资料上传</a></li>
     <li class="active"><a href="{:U('Shiti/edit')}">编辑试卷资料</a></li>
     <li><a href="{:U('Shiti/myupload','id='.$vo['id'])}" >我的上传情况</a><li>
   </ul>
	<!-- 标题栏 -->
       <h4 style="color:#5A81A8"><i class="glyphicon glyphicon-pencil"></i> 编辑试卷资料</h4>
      
<div class="col-xs-9">
   <!-- 面板1start  -->
 <div class=" panel panel-info">
   <div class="panel-heading">
      <h3 class="panel-title">试卷信息 《{$info.title}》 <button type="button" class="panel-collapse close" href="#post-info" data-toggle="collapse"><span class="pull-right glyphicon glyphicon-chevron-up"></span></button></h3>     
   </div>
   <div  id="post-info" class="collapse in">
       <div class="panel-body">
       <form method='post' id="infoform" name="infoform" action="" role="form" >
       <table class="table">
       <tr>
       <td> 任教学科：<input type="text" name="subject" value="{$info.subject}" /> </td>
       <td> 任教年级：<input type="text" name="grade" value="{$info.grade}" /> </td>
        </tr>
        <tr>
        <td> 文件标题：<input type="text" name="title" value="{$info.title}" /></td>
        <td> 出卷教师： <input type="text" name="teacher" value="{$info.teacher}" /> </td>
        </tr>
        <tr>
        <td> 更新时间：{$info.update_time|date="Y-m-d",###}</td>
         <td> 创建日期： {$info.create_time|date="Y-m-d",###}</td>
         </tr>
         <tr>
           <td colspan="2"> <input type="hidden" name="id" value="{$info.id}" />
           </td>
         </tr>
          </table>
          <div class="col-md-offset-1 col-md-2"> 
         <button type="submit" class="btn btn-success " id="submit-button"><span class="glyphicon glyphicon-edit"></span>  保存</button></div> 
            <div class="col-md-3"><a href="#" class="btn btn-danger" id="submit-button"><span class="glyphicon glyphicon-trash"></span>  删除</a></div>
          <div class="col-md-5 "><a href="{:U('Jtbk/Shiti/download',array('fid'=>$info['id']))}" 
            class="btn btn-primary pull-right"><span class="glyphicon glyphicon-floppy-disk"></span>点击附件下载</a>
         </div> 
        </form>
        </div>
          <div class="panel-footer"><span class=" glyphicon glyphicon-hand-up">  </span>  请注意选择相应类别，并添加要上传的文件（上传前请按规定命名好文件名称）</div>
       </div>
    </div>
    <!-- 面板1end  -->
  </div>
  <div class="clearfix" > </div>

 </div> 
</block>

